package com.yeban.javase.day03.test01;

/**
 * @Desc TODO
 * @Author yeban
 * @Date 2025/10/11
 */
/*
1).Employee类有姓名，薪资属性
2).EmployeeUtil 工具类中，有涨工资bonus(Employee e)的方法（要求方法静态）；
若获得到的薪资>10000，则涨薪水20%，否则涨薪10%。
*/
public class Employee {

    private String name;
    private double salary;

    public Employee() {
    }

    public Employee(String name, double salary) {
        this.name = name;
        this.salary = salary;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return salary
     */
    public double getSalary() {
        return salary;
    }

    /**
     * 设置
     * @param salary
     */
    public void setSalary(double salary) {
        this.salary = salary;
    }

    public String toString() {
        return "Empolyee{name = " + name + ", salary = " + salary + "}";
    }
}
